<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>注册</title>
</head>
<body>
<form action="router.php?c=user&m=adduser" method="post" enctype="multipart/form-data">
  <table align="center" border="1">
    <h3><center>添加用户</center></h3>
    <tr>
      <td><label for="username">姓名</label></td>
      <td><input type="text" name="uname" id="username" required></td>
    </tr>
    <tr>
      <td><label for="pw">密码</label></td>
      <td><input type="password" name="password" id="pw" required></td>
    </tr>
    <tr>
      <td><label for="sex">性别</label></td>
      <td>
        <input type="radio" name="gender" id="sex" value="1">男
        <input type="radio" name="gender" id="sex" value="0">女
      </td>
    </tr>
    <tr>
      <td><label for="birthdate">出生日期</label></td>
      <td>
        <input type="date" name="birthdate" id="birthdate" checked>
      </td>
    </tr>
    <tr>
      <td><label for="hobby">爱好</label></td>
      <td>
        <input type="checkbox" name="hobby[]" id="hobby" value="旅游" checked>旅游
        <input type="checkbox" name="hobby[]" id="hobby" value="登山">登山
        <input type="checkbox" name="hobby[]" id="hobby" value="健身">健身
        <input type="checkbox" name="hobby[]" id="hobby" value="上网">上网
        <input type="checkbox" name="hobby[]" id="hobby" value="游泳">游泳
      </td>
    </tr>

    <tr>
      <td>学历</td>
      <td>
        <select name="degree">
          <option value="0">==请选择==</option>
          <option value="1">本科</option>
          <option value="2">大专</option>
          <option value="3">研究生</option>
        </select>
      </td>
    </tr>
    <tr>
      <td><label for="intro">个人简介</label></td>
      <td><textarea name="intro">自我简介：</textarea></td>
    </tr>
    <tr>
      <td><label for="pic">照片</label></td>
      <td><input type="file" name="pic" id="pic"></td>
    </tr>
    <tr>
      <td colspan="2" align="center">
        <input type="submit" value="注册">
        <input type="reset" value="重置">
      </td>
    </tr>
  </table>
  
</form>
</body>
</html>